package com.example.judge.config.thread;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "thread.pool-executor")
public class ThreadPoolProperties {

    //核心线程数
    private Integer corePoolSize;

    //最大线程数
    private Integer maxPoolSize;

    //阻塞队列大小
    private Integer queueCapacity;

    //空闲存活时间
    private Integer keepAliveSeconds;

    //线程名称
    private String prefixName;

    //拒绝策略
    private Integer rejectHandler;
}
